package com.dingup.api.enums;

/**
 * Created by wancheng on 2018/8/25.
 */
public enum ClassUserTypeEnum {

    CLASSTEACHER("班主任"),
    TEACHER("老师"),
    STUDENT("学生");

    public static ClassUserTypeEnum getEnum(String type){
        ClassUserTypeEnum res = null;
        for (ClassUserTypeEnum e:ClassUserTypeEnum.values()) {
            if (e.name().equals(type)){
                res = e;
                break;
            }
        }
        return res;
    }

    private String name;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    ClassUserTypeEnum(String name) {
        this.name = name;
    }
}
